package com.ldp.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.client.RestTemplate;

/**
 * @author 北巷_东坡
 * @date 2022/11/3 8:24
 * @computer 10741
 */
@Service
public class LocalItemService {
    @Autowired
    private RestTemplate restTemplate;
    public String hi(@RequestParam(value = "id") String id){
        return restTemplate.getForObject("http://SpringBootEurekaProviderLDP/hildp?id="+id,String.class);
    }
}
